<template>
  <div class="pagination-container">
    <el-pagination
      :current-page="ROOT.PAGE"
      :layout="ROOT.LAYOUT"
      :page-size="ROOT.PAGE_SIZE"
      :page-sizes="ROOT.PAGE_SIZES"
      :total="ROOT.TOTAL"
      @size-change="ROOT._handleSizeChange"
      @current-change="ROOT._handleCurrentChange"
    />
  </div>
</template>

<script>
export default {
  name: 'Pagination',
  inject: ['ROOT']
}
</script>

<style scoped>
.pagination-container {
  text-align: center;
}
</style>
